home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 February / EnigmA AMIGA RUN 04 (1996)(G.R. Edizioni)(IT)[!][issue 1996-02][Skylink CD III].iso / earcd / util1 / yk211src.lha / Yak_2.11_Src / Prefs / Include / Misc_window.h < prev    next >
C/C++ Source or Header  |  1995-11-16  |  2KB  |  83 lines

  1.  
  2. #ifndef MISC_H
  3.  
  4. #define MISC_H
  5.  
  6. #ifndef INTUITION_INTUITION_H
  7. #include <intuition/intuition.h>
  8. #endif
  9. #ifndef LIBRARIES_GADTOOLS_H
  10. #include <libraries/gadtools.h>
  11. #endif
  12.  
  13. /* Miscellaneous Window gadgets */
  14.  
  15. #define GDX_ClickVol             0
  16. #define GDX_Return2              1
  17. #define GDX_BlackBorderCheck     2
  18. #define GDX_WildStarCheck        3
  19. #define GDX_NoClickCheck         4
  20. #define GDX_UnixDirsCheck        5
  21. #define GDX_MMBShiftCheck        6
  22. #define GDX_SlashDirCheck        7
  23. #define GDX_FullWorkbenchCheck   8
  24. #define GDX_CapShiftCheck        9
  25.  
  26. /* Number of gadgets */
  27.  
  28. #define Misc_CNT                 10
  29.  
  30.  
  31. /* Global variables */
  32.  
  33. #ifdef GADTOOLS
  34. GLOBAL struct Window       *MiscWnd;
  35. GLOBAL struct Gadget       *MiscGList;
  36. GLOBAL struct Gadget       *MiscGadgets[Misc_CNT];
  37. GLOBAL UWORD                MiscWidth;
  38. GLOBAL UWORD                MiscHeight;
  39. GLOBAL UBYTE               *MiscWdt;
  40. GLOBAL UWORD                MiscGTypes[];
  41. GLOBAL struct NewGadget     MiscNGad[];
  42. GLOBAL ULONG                MiscGTags[];
  43. #endif
  44.  
  45. /* Global prototypes */
  46.  
  47. GLOBAL VOID MiscRender      (VOID);
  48. GLOBAL int OpenMiscWindow   (VOID);
  49. GLOBAL VOID CloseMiscWindow (VOID);
  50. GLOBAL LONG HandleMiscIDCMP (VOID);
  51. GLOBAL BOOL ShowMiscWindow  (VOID);
  52.  
  53. #ifdef BGUI                                             /* NMC */
  54. GLOBAL struct Window           *MiscWnd;
  55. GLOBAL Object                  *MiscObjects[];
  56. #endif
  57.  
  58. #ifdef MUI
  59. GLOBAL APTR        *MiscWnd;
  60. GLOBAL APTR         MiscObjects[];
  61. #endif
  62.  
  63. #if defined(MUI) || defined(BGUI)               /* NMC */
  64.  
  65. #define SL_ClickVol             MiscObjects[GDX_ClickVol]
  66. #define BT_Return2              MiscObjects[GDX_Return2]
  67. #define CH_BlackBorder          MiscObjects[GDX_BlackBorderCheck]
  68. #define CH_WildStar             MiscObjects[GDX_WildStarCheck]
  69. #define CH_NoClick              MiscObjects[GDX_NoClickCheck]
  70. #define CH_UnixDirs             MiscObjects[GDX_UnixDirsCheck]
  71. #define CH_MMBShift             MiscObjects[GDX_MMBShiftCheck]
  72. #define CH_SlashDir             MiscObjects[GDX_SlashDirCheck]
  73. #define CH_FullWorkbench        MiscObjects[GDX_FullWorkbenchCheck]
  74. #define CH_CapShift             MiscObjects[GDX_CapShiftCheck]
  75.  
  76. GLOBAL APTR CreateMiscWindow   (VOID);
  77. GLOBAL BOOL ShowMiscWindow     (VOID);
  78. GLOBAL VOID CloseMiscWindow    (VOID);
  79. GLOBAL LONG HandleMiscReturnID (LONG id);
  80. #endif /* BGUI */
  81.  
  82. #endif /* MISC_H */
  83.